<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use App\Models\AdminUser;
use App\Models\AdminUserLogin;
use Encore\Admin\Controllers\Dashboard;
use Encore\Admin\Layout\Column;
use Encore\Admin\Layout\Content;
use Encore\Admin\Layout\Row;
use Illuminate\Support\Facades\Auth;  
use Encore\Admin\Facades\Admin;

class HomeController extends Controller
{
    public function index(Content $content)
    {
        // 填充页面body部分，这里可以填入任何可被渲染的对象
        $content->body('<span style="font-size:50px;">请根据左侧导航进行使用</span>');
        $admin_user = AdminUserLogin::find(Admin::user()->id);
        Auth::guard('adminlogin')->login($admin_user);

        return $content;
    }
}
